from selenium import webdriver
import time

d = webdriver.Chrome()
d.maximize_window()
d.get("https://www.baidu.com")
time.sleep(2)
d.get("https://www.taobao.com")
time.sleep(2)
d.refresh()  # 刷新
time.sleep(2)
d.back()  # 返回
time.sleep(2)
d.forward()  # 前进
time.sleep(2)

d.quit()


